package xin.petstore.framework.web.img.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * =============================
 * Author: zsongbo
 * Function: 验证码图片实体类
 * Version: 1.0
 * Date: 2016/7/4 0004
 * =============================
 */
@Document(collection = "CodeImage")
public class CodeImage implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;
    private String fileName;//文件名
    private String originalId;//文件存放id
    private String imgType;//图片类型：1.jpg2.png3.gif
    private String imgStatus;//是否可用：0.可用 1.不可用
    private String imgSize;//图片像素大小
    private String category;//图片内容分类
    private String correlation;//关联
    private String cdate; //创建时间
    private String redundancy;//冗余字段

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getOriginalId() {
        return originalId;
    }

    public void setOriginalId(String originalId) {
        this.originalId = originalId;
    }

    public String getImgType() {
        return imgType;
    }

    public void setImgType(String imgType) {
        this.imgType = imgType;
    }

    public String getImgStatus() {
        return imgStatus;
    }

    public void setImgStatus(String imgStatus) {
        this.imgStatus = imgStatus;
    }

    public String getImgSize() {
        return imgSize;
    }

    public void setImgSize(String imgSize) {
        this.imgSize = imgSize;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getCdate() {
        return cdate;
    }

    public void setCdate(String cdate) {
        this.cdate = cdate;
    }

    public String getCorrelation() {
        return correlation;
    }

    public void setCorrelation(String correlation) {
        this.correlation = correlation;
    }

    public String getRedundancy() {
        return redundancy;
    }

    public void setRedundancy(String redundancy) {
        this.redundancy = redundancy;
    }
}